<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core_rt" %>
<%@ page isELIgnored="false" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>用户列表</title>
</head>
<body>
	<h1>用户列表</h1>
	<table>
		<tr>
			<th>姓名</th>
			<th>图片</th>
			<th>操作</th>
		</tr>
		<c:forEach items="${users}" var="user">
			<tr>
				<td>${user.name }</td>
				<td><img src="/struts_6_fileupload/files/${user.newPhoto }" width="100"></td>
				<td><a href="/struts_6_fileupload/download.do?user=${user.name }">点击下载</a></td>
			</tr>
		</c:forEach>
		
	</table>
</body>
</html>